package com.hjb.service.impl.cms;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hjb.service.cms.CmsArticleService;
import com.hjb.service.domain.cmsarticle.CmsArticle;
import com.hjb.service.domain.cmsarticle.CmsArticleExample;
import com.hjb.service.mapper.CmsArticleMapper;

@Service
public class CmsArticleServiceImpl implements CmsArticleService {

	private Logger log = LoggerFactory.getLogger(CmsArticleServiceImpl.class);
	
	@Autowired
	private CmsArticleMapper cmsArticleMapper;

	@Override
	public List<CmsArticle> selectByExample(CmsArticleExample example) {
		return cmsArticleMapper.selectByExample(example);
	}

	@Override
	public int insertCmsArticle(CmsArticle cmsArticle) {
		return cmsArticleMapper.insertSelective(cmsArticle);
	}

	@Override
	public void updateCmsArticle(CmsArticle cmsArticle) {
		cmsArticleMapper.updateByPrimaryKeySelective(cmsArticle);
	}
	
}
